package com.day12_Thread;

/**
 * @ClassName: MyThread
 * @Author: zw
 * @Description: 出百万拳，行万里路；
 * @Create 2024/3/22-23:47
 * @Version 1.0
 */
public class MyThread extends Thread{
    @Override
    public void run() {
        for (int i=0;i<100;i++) {
            System.out.println(this.getName() + ":" +i);
        }
    }
    @Override
    public synchronized void start() {
        super.start();
    }
}
